package cn.col.gszf.service;

import cn.col.gszf.model.ChannelDTO;
import cn.col.gszf.pojo.Channel;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.ui.Model;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author wanghong
 * @created 2024-06-18 23:37
 * @description 频道接口
 **/
public interface ChannelService {

    List<Channel> findAllToChannelInfo(List<Integer> list);

    List<Channel> findAllToChannelInfo();

    Channel writeBack(Integer channelId);

    Channel update(Channel channel);

    /**
     * @Description 获取所有频道信息
     * @return: List<ChannelDTO>
     * @Author: wanghong
     * @Date: 2024/6/18
     */
    List<Channel> selectAllChannelInfo();

    /**
     * @Description 根据id获取频道详细信息
     * @Param: channelId，vid，model，ip,response
     * @return: Channel
     * @Author: wanghong
     * @Date: 2024/6/23
     */
    Channel getById(Integer channelId, String vid, Model model, String ip, HttpServletResponse response);

    Channel getById(Integer channelId);

    @Transactional
    Boolean deleteById(Integer id);

    Channel save(Channel channel);
}
